<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="PyfntbpoaprogEditDlg" widgetVar="PyfntbpoaprogEditDialog" modal="true" resizable="false" appendToBody="true" header="#{myBundle.EditPyfntbpoaprogTitle}">

            <h:form id="PyfntbpoaprogEditForm">

                <h:panelGroup id="display">
                    <p:panelGrid  columns="2" rendered="#{pyfntbpoaprogController.selected != null}">

                        <h:outputLabel value="#{myBundle.EditPyfntbpoaprogLabel_pyfntbpoaprogid}" for="pyfntbpoaprogid" />
                        <h:outputText id="pyfntbpoaprogid" value="#{pyfntbpoaprogController.selected.pyfntbpoaprogid}" />

                        <p:outputLabel value="#{myBundle.EditPyfntbpoaprogLabel_metanual}" for="metanual" />
                        <p:inputText id="metanual" value="#{pyfntbpoaprogController.selected.metanual}" title="#{myBundle.EditPyfntbpoaprogTitle_metanual}" required="true" requiredMessage="#{myBundle.EditPyfntbpoaprogRequiredMessage_metanual}"/>

                        <p:outputLabel value="#{myBundle.EditPyfntbpoaprogLabel_progcuatrim1}" for="progcuatrim1" />
                        <p:inputText id="progcuatrim1" value="#{pyfntbpoaprogController.selected.progcuatrim1}" title="#{myBundle.EditPyfntbpoaprogTitle_progcuatrim1}" required="true" requiredMessage="#{myBundle.EditPyfntbpoaprogRequiredMessage_progcuatrim1}"/>

                        <p:outputLabel value="#{myBundle.EditPyfntbpoaprogLabel_progcuatrim2}" for="progcuatrim2" />
                        <p:inputText id="progcuatrim2" value="#{pyfntbpoaprogController.selected.progcuatrim2}" title="#{myBundle.EditPyfntbpoaprogTitle_progcuatrim2}" required="true" requiredMessage="#{myBundle.EditPyfntbpoaprogRequiredMessage_progcuatrim2}"/>

                        <p:outputLabel value="#{myBundle.EditPyfntbpoaprogLabel_progcuatrim3}" for="progcuatrim3" />
                        <p:inputText id="progcuatrim3" value="#{pyfntbpoaprogController.selected.progcuatrim3}" title="#{myBundle.EditPyfntbpoaprogTitle_progcuatrim3}" required="true" requiredMessage="#{myBundle.EditPyfntbpoaprogRequiredMessage_progcuatrim3}"/>

                        <p:outputLabel value="#{myBundle.EditPyfntbpoaprogLabel_responsables}" for="responsables" />
                        <p:inputText id="responsables" value="#{pyfntbpoaprogController.selected.responsables}" title="#{myBundle.EditPyfntbpoaprogTitle_responsables}" required="true" requiredMessage="#{myBundle.EditPyfntbpoaprogRequiredMessage_responsables}"/>

                        <p:outputLabel value="#{myBundle.EditPyfntbpoaprogLabel_fecharegistro}" for="fecharegistro" />
                        <p:calendar id="fecharegistro" pattern="MM/dd/yyyy HH:mm:ss" value="#{pyfntbpoaprogController.selected.fecharegistro}" title="#{myBundle.EditPyfntbpoaprogTitle_fecharegistro}" required="true" requiredMessage="#{myBundle.EditPyfntbpoaprogRequiredMessage_fecharegistro}" showOn="button"/>

                        <p:outputLabel value="#{myBundle.EditPyfntbpoaprogLabel_observaciones}" for="observaciones" />
                        <p:inputText id="observaciones" value="#{pyfntbpoaprogController.selected.observaciones}" title="#{myBundle.EditPyfntbpoaprogTitle_observaciones}" required="true" requiredMessage="#{myBundle.EditPyfntbpoaprogRequiredMessage_observaciones}"/>

                        <p:outputLabel value="#{myBundle.EditPyfntbpoaprogLabel_pyfntbpoaid}" for="pyfntbpoaid" />
                        <p:selectOneMenu id="pyfntbpoaid" value="#{pyfntbpoaprogController.selected.pyfntbpoaid}" required="true" requiredMessage="#{myBundle.EditPyfntbpoaprogRequiredMessage_pyfntbpoaid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{pyfntbpoaController.items}"
                                           var="pyfntbpoaidItem"
                                           itemValue="#{pyfntbpoaidItem}"
                                           itemLabel="#{pyfntbpoaidItem.pyfntbpoaid.toString()}"
                                           />
                            <f:converter binding="#{pyfntbpoaConverter}"/>
                        </p:selectOneMenu>

                        <p:outputLabel value="#{myBundle.EditPyfntbpoaprogLabel_pyfntbactivpoaid}" for="pyfntbactivpoaid" />
                        <p:selectOneMenu id="pyfntbactivpoaid" value="#{pyfntbpoaprogController.selected.pyfntbactivpoaid}" required="true" requiredMessage="#{myBundle.EditPyfntbpoaprogRequiredMessage_pyfntbactivpoaid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{pyfntbactivpoaController.items}"
                                           var="pyfntbactivpoaidItem"
                                           itemValue="#{pyfntbactivpoaidItem}"
                                           itemLabel="#{pyfntbactivpoaidItem.descripcion.toString()}"
                                           />
                            <f:converter binding="#{pyfntbactivpoaConverter}"/>
                        </p:selectOneMenu>
                    </p:panelGrid>
                    <p:commandButton actionListener="#{pyfntbpoaprogController.save}" value="#{myBundle.Save}" update="display,:PyfntbpoaprogListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,PyfntbpoaprogEditDialog);"/>
                    <p:commandButton value="#{myBundle.Cancel}" onclick="PyfntbpoaprogEditDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
